import os

from flask import Flask
from flask_script import Manager
from flask_migrate import MigrateCommand
from App import create_app
from flask_blueprint import Blueprint

env = os.environ.get("FLASK_ENV", "develop")
app = create_app(env)
manager = Manager(app=app)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    # app.run(debug=True)
    manager.run()


# flask-view使用时需要单独作为一个项目运行，主要是路由方面的内容